<link href="../addons/jy_friends_shop/custom/templates/mobile/style.css?v=201805251730" rel="stylesheet">
<style type="text/css">
	.icon1 {
		width: .8rem; height: .8rem;
		vertical-align: -0.15em;
		fill: currentColor;
		overflow: hidden;
	}
</style>

<div class="fui-page fui-page-current page-commission-index ">
    <div class='fui-content navbar'>
	<div class="headinfo">
	    <div class="userinfo" style="height: auto;width:100%">
			<div class='fui-list'>
				<div class='fui-list-media'><img ng-src="{{tomedia(pagedata.member.avatar)}}" /></div>
				<div class='fui-list-info'>
					<div class='title'>{{pagedata.member.nickname}} </div>
					<div class='text'>{{pagedata.member.mobile}} </div>
				</div>
				<a class="setbtn external jump"  href="javascript:;" ng-click="access_json('jy_friends_shop/agent.set/main')" >
					<i class="icon jinyunicon icon-shezhi"></i>
				</a>
			</div>
		
	    </div>
	</div>
		<div class="userblock">
			<div class="line total new">
				<div class="num">{{pagedata.data.balance_total || '0.00'}}</div>
				<div class="title">已结算佣金（元）</div>
			</div>
			<div class="line usable new">

				<div class="text">
					<div class="num">{{pagedata.data.commission_1  || '0.00'}}</div>
					<div class="title">待结算佣金（元）</div>
				</div>
				
				<a ng-if="pagedata.data.commission_1 > 0" ng-click="post({},'commission/balance')" class="btn btn-warning external" ><span style="line-height: 1">申请结算</span></a>
			</div>
		</div>
		<div class="fui-block-group col-2" style='overflow: hidden;'>
            
            <a class="fui-block-child new external" href="javascript:;" ng-click="access_json('jy_friends_shop/agent.order/main')">
                <div class="icon" style="color: #9ec9f4;"><i class="icon jinyunicon icon-dingdan"></i></div>
				<div class="text new">
					<div class="title">代理订单</div>
					<div class=""><span>{{pagedata.ordernum || 0}}</span> 笔</div>
				</div>
            </a>
            <a class="fui-block-child new  external" href="javascript:;" ng-click="access_json('jy_friends_shop/agent.balance/main')">
                <div class="icon" style="color: #ffbe2e;"><i class="icon jinyunicon icon-wodeqianbao"></i></div>
				<div class="text new">
					<div class="title">已结算笔数</div>
					<div class=""><span>{{pagedata.data.balance_num || 0}}</span> 笔</div>
				</div>
            </a>

	</div>
		<!--{/if}-->
		<div class="fui-cell-group">
			<a  href="javascript:;" ng-click="access_json('jy_friends_shop/agent.qrcode/main')" class="fui-cell">
				<div class="fui-cell-icon ">
					<i class="icon jinyunicon icon-erweima text-yellow"></i>
				</div>
				<div class="fui-cell-text">推广二维码</div>
				<div class="fui-cell-remark" style="font-size: 0.5rem;"></div>
			</a>
			<a class="fui-cell" href="javascript:;" ng-click="access_json('jy_friends_shop/agent.set/main')">
				<div class="fui-cell-icon ">
					<i class="icon jinyunicon icon-dianpu text-yellow"></i>
				</div>
				<div class="fui-cell-text">小店设置</div>
				<div class="fui-cell-remark" style="font-size: 0.5rem;"></div>
			</a>
			<a class="fui-cell" href="javascript:;" ng-click="access_json('jy_friends_shop/agent.goods/main')">
				<div class="fui-cell-icon ">
					<i class="icon jinyunicon icon-ruzhuchenggongdapx text-yellow"></i>
				</div>
				<div class="fui-cell-text">代理的商品</div>
				<div class="fui-cell-remark" style="font-size: 0.5rem;"></div>
			</a>
			<a class="fui-cell" href="javascript:;" ng-click="access_json('jy_friends_shop/agent.cangoods/')">
				<div class="fui-cell-icon ">
					<i class="icon jinyunicon icon-ruzhuchenggongdapx text-yellow"></i>
				</div>
				<div class="fui-cell-text">商品库</div>
				<div class="fui-cell-remark" style="font-size: 0.5rem;"></div>
			</a>
		</div>
    </div>

</div>
<div ng-include="sys_html('_footer')"></div>